package test3.definitions;

import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Iterator;

/**
 * Created by Claudiu-Florin FILIMON
 * Date: Aug 1, 2007
 * Time: 8:59:57 PM
 * Revision: 0
 */
public class FileDefinition
{
    private String packageName;
    private ArrayList importList;
    private ArrayList classList;


    public FileDefinition()
    {
        packageName = "";
        importList = new ArrayList();
        classList = new ArrayList();
    }


    public String getPackageName()
    {
        return packageName;
    }

    public void setPackageName(String packageName)
    {
        this.packageName = packageName;
    }

    public void addImport(String name)
    {
        importList.add(name);
    }

    public void addClass(ClassDefinition def)
    {
        classList.add(def);
    }

    public Iterator getImports()
    {
        return importList.iterator();
    }

    public Iterator getClasses()
    {
        return classList.iterator();
    }
}
